<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        const person = {
            name:"ArimaMisaki",
            age:12
        }

        // 1.获取对象所有的键
        console.log(Object.keys(person));
        
        // 2.获取对象所有的值
        console.log(Object.values(person));
        
        // 3.获取对象中的每条键值对
        console.log(Object.entries(person));
        const map = new Map(Object.entries(person));
        console.log(map);//可用于创建map

        // 4.获取对象属性的描述性对象
        console.log(Object.getOwnPropertyDescriptors(person));
    </script>
</body>
</html>